window.addEvent('domready', function() {
        document.formvalidator.setHandler('quantity',
                function (value) {
        	alert('dd');
            regex=/^\d+$/;
            return regex.test(value);
        });
});